package com.tangyuan.video.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.tangyuan.model.VideoCategoryHaokan;
import com.tangyuan.video.mapper.VideoCategoryHaokanMapper;
import com.tangyuan.video.service.IVideoCategoryHaoKanService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class VideoCategoryHaokanServiceImpl extends ServiceImpl<VideoCategoryHaokanMapper, VideoCategoryHaokan> implements IVideoCategoryHaoKanService {
    @Override
    public List<VideoCategoryHaokan> getAllVideoCategoryHaoKan() {
        return this.list(new LambdaQueryWrapper<VideoCategoryHaokan>().orderByDesc(VideoCategoryHaokan::getId));
    }
}